package com.uzai.console.dto.pyq.pyqgoods;

import com.uzai.console.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("批量发送朋友圈任务参数")
@Data
public class PyqJobBatchSendDao extends BaseDto {

    @ApiModelProperty("朋友圈类型 0商品")
    private Integer type;

    @ApiModelProperty("平台 0淘宝")
    private Integer platform;

    @ApiModelProperty("设备方案id")
    private Long devicePlanId;

    @ApiModelProperty("朋友圈内容id(-100表示自定义模板)")
    private Long contentId;

    @ApiModelProperty("朋友圈内容")
    private String content;

    @ApiModelProperty("评论模板id(-100表示自定义模板)")
    private Long commentId;

    @ApiModelProperty("评论内容(JSON数组格式)")
    private String commentContent;

    @ApiModelProperty("发送时间")
    private Integer sendTime;

    @ApiModelProperty("发送间隔时间")
    private Integer timeInterval;

    @ApiModelProperty("自定义图片")
    private String customImg;

    @ApiModelProperty("商品id列表")
    private List<String> itemidList;

    @ApiModelProperty("发送商品自带评论（0-关闭；1-开启）")
    private Integer goodsComment;

    @ApiModelProperty(value = "域名",hidden = true)
    private Long domain;

    public Integer getGoodsComment() {
        if(goodsComment == null){
            goodsComment = 1; //默认开启
        }
        return goodsComment;
    }

    public void setGoodsComment(Integer goodsComment) {
        this.goodsComment = goodsComment;
    }
}


